﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

namespace FakeXiecheng.API.Migrations
{
    public partial class DataSeeding2 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DeleteData(
                table: "TouristRoutes",
                keyColumn: "Id",
                keyValue: new Guid("1e652a7e-889e-42ba-b66f-70f2da53d58a"));

            migrationBuilder.InsertData(
                table: "TouristRoutes",
                columns: new[] { "Id", "CreateTime", "DepartureTime", "Description", "DiscountPresent", "Features", "Fees", "Notes", "Originalprice", "Title", "UpdateTime" },
                values: new object[] { new Guid("fb6d4f10-79ed-4aff-a915-4ce29dc9c7e1"), new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), null, "�ٷ��콢��", 0.10000000000000001, "<div><p>�����ֻ��۸����</p></div>", "<div><dt>���ð���</dt></div>", "<p>����</p>", 1999.45m, "���ܶ�", null });

            migrationBuilder.InsertData(
                table: "TouristRoutes",
                columns: new[] { "Id", "CreateTime", "DepartureTime", "Description", "DiscountPresent", "Features", "Fees", "Notes", "Originalprice", "Title", "UpdateTime" },
                values: new object[] { new Guid("a1fd0bee-0afc-4586-96c8-f46b7c99d2a0"), new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), null, "�ٷ��콢��", 0.5, "<div><p>�����ֻ��۸����</p></div>", "<div><dt>���ð���</dt></div>", "<p>����</p>", 3999.45m, "С��˹", null });

            migrationBuilder.InsertData(
                table: "TouristRoutepictures",
                columns: new[] { "Id", "TouristRouteId", "Url" },
                values: new object[,]
                {
                    { 1, new Guid("fb6d4f10-79ed-4aff-a915-4ce29dc9c7e1"), "../../assets/images/japan-20210901_640.jpg" },
                    { 2, new Guid("fb6d4f10-79ed-4aff-a915-4ce29dc9c7e1"), "../../assets/images/japan-20210902_640.jpg" },
                    { 3, new Guid("fb6d4f10-79ed-4aff-a915-4ce29dc9c7e1"), "../../assets/images/japan-20210903_640.jpg" },
                    { 4, new Guid("a1fd0bee-0afc-4586-96c8-f46b7c99d2a0"), "../../assets/images/japan-20210904_640.jpg" },
                    { 5, new Guid("a1fd0bee-0afc-4586-96c8-f46b7c99d2a0"), "../../assets/images/japan-20210905_640.jpg" },
                    { 6, new Guid("a1fd0bee-0afc-4586-96c8-f46b7c99d2a0"), "../../assets/images/japan-20210906_640.jpg" }
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DeleteData(
                table: "TouristRoutepictures",
                keyColumn: "Id",
                keyValue: 1);

            migrationBuilder.DeleteData(
                table: "TouristRoutepictures",
                keyColumn: "Id",
                keyValue: 2);

            migrationBuilder.DeleteData(
                table: "TouristRoutepictures",
                keyColumn: "Id",
                keyValue: 3);

            migrationBuilder.DeleteData(
                table: "TouristRoutepictures",
                keyColumn: "Id",
                keyValue: 4);

            migrationBuilder.DeleteData(
                table: "TouristRoutepictures",
                keyColumn: "Id",
                keyValue: 5);

            migrationBuilder.DeleteData(
                table: "TouristRoutepictures",
                keyColumn: "Id",
                keyValue: 6);

            migrationBuilder.DeleteData(
                table: "TouristRoutes",
                keyColumn: "Id",
                keyValue: new Guid("a1fd0bee-0afc-4586-96c8-f46b7c99d2a0"));

            migrationBuilder.DeleteData(
                table: "TouristRoutes",
                keyColumn: "Id",
                keyValue: new Guid("fb6d4f10-79ed-4aff-a915-4ce29dc9c7e1"));

            migrationBuilder.InsertData(
                table: "TouristRoutes",
                columns: new[] { "Id", "CreateTime", "DepartureTime", "Description", "DiscountPresent", "Features", "Fees", "Notes", "Originalprice", "Title", "UpdateTime" },
                values: new object[] { new Guid("1e652a7e-889e-42ba-b66f-70f2da53d58a"), new DateTime(2021, 9, 3, 6, 36, 53, 373, DateTimeKind.Utc).AddTicks(1529), null, "shuoming", null, null, null, null, 0m, "ceshititle", null });
        }
    }
}
